package org.ben.birthday.twentybirthday.service;

import org.ben.birthday.twentybirthday.entity.BackGroundImage;

import java.util.List;
import java.util.Optional;

/**
 * @Author: Ben
 * @Date: 2019/8/7 22:09
 */
public interface IBackGroundImageService {
    /**
     * 增加背景图片IService
     * @param backGroundImage
     * @return boolean
     */
    boolean insertBackGroundImageService(BackGroundImage backGroundImage);

    /**
     * 删除背景图片IService
     * @param backGroundImageId
     * @param pictureUrl
     * @return boolean
     */
    boolean deleteBackGroundImageService(Integer backGroundImageId,String pictureUrl);

    /**
     * 更改背景图片IService
     * @param backGroundImage
     * @return boolean
     */
    boolean updateBackGroundImageService(BackGroundImage backGroundImage);

    /**
     * 根据backGroundImageId查询背景图片信息IService
     * @param backGroundImageId
     * @return BackGroundImage
     */
    BackGroundImage selectBackGroundImageService(Integer backGroundImageId);
}
